﻿using Hx.ADSyncPlatform.Controllers.Base;
using Hx.ADSyncPlatform.Entity.Entities;
using Hx.ADSyncPlatform.Infrastructure.Page;
using Hx.ADSyncPlatform.Service;
using Hx.ADSyncPlatform.WebApi.Model;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Hx.ADSyncPlatform.WebApi.Controllers.InterfaceLog
{
    /// <summary>
    /// 组织日志
    /// </summary>
    [Route("api/log/password")]
    //[Authorize(policy: "Permission")]
    [Authorize]
    public class InterfaceLogPasswordController : BaseController
    {
        private InterfaceLogPasswordService interfaceLogPasswordService;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="plat_OperateLogService"></param>
        /// <param name="serviceProvider"></param>
        public InterfaceLogPasswordController(InterfaceLogPasswordService interfaceLogPasswordService, IServiceProvider serviceProvider) : base(serviceProvider)
        {
            this.interfaceLogPasswordService = interfaceLogPasswordService;


        }

        [HttpGet("list")]
        public async Task<Result<PageResult<Interface_PasswordLogs>>> GetList([FromQuery] Pagination pagination, [FromQuery] Dictionary<string, string> param
           )
        {

            var res = await interfaceLogPasswordService.GetPageList(param, pagination);

            return await base.Success<PageResult<Interface_PasswordLogs>>(res);

        }

    }
}
